package org.jeecg.modules.golf.tag.event;

import lombok.Getter;
import org.jeecg.modules.golf.tag.entity.TagMapping;
import org.springframework.context.ApplicationEvent;

import java.util.List;


/**
 * 保存或者更新标签事件
 */
@Getter
public class TagEvent extends ApplicationEvent {


    private Long mainId;


    private List<TagMapping> tagMappingList;


    private Integer mappingType;

    public TagEvent(Object source, Long mainId, List<TagMapping> tagMappingList, Integer mappingType) {
        super(source);
        this.mainId = mainId;
        this.tagMappingList = tagMappingList;
        this.mappingType = mappingType;
    }


}
